<div class="page has-sidebar-left">
    <header class="blue accent-3 relative">
        <div class="container-fluid text-white">
            <div class="row p-t-b-10 ">
                <div class="col">
                    <h4>
                        <i class="icon-paper-plane"></i>
                        APP 版本更新控制
                    </h4>
                </div>
            </div>
 
        </div>
    </header>
    <div class="container-fluid animatedParent animateOnce my-3">
        <div class="animated fadeInUpShort go">
            <div class="row">
              
              
              
       <div class="col-md-7">
                    <div class="card">
                        <div class="card-body b-b">  
                          
                          <div class="card-body b-b">
                            <ul class="list-group">
                                <li>
                                   IOS更新推送
                                    <div class="material-switch float-right">
                                      
                                                                           
                             <?php  $Ios_Updated_switch  =  db('advert')->where('id = 155')->value('content');   

								if($Ios_Updated_switch == '1'){?> 
                                    
                                                 <a href="{:url('Version/eject_no',['id'=>155])}" title="断开"  class="btn btn-primary btn-xs blink"><i class="icon-phonelink_ring"></i> 更新推送中</a>
                     
                                    <?php } else if($Ios_Updated_switch == '0'){?> 
                                    
                                        
                                                 <a href="{:url('Version/eject_ok',['id'=>155])}" title="推送"  class="btn btn-secondary btn-xs"><i class="icon-phonelink_erase"></i> 已断开 </a>
                                    
                                    <?php } else { ?>
                                    
                                    
                                                 <a href="{:url('Version/eject_ok',['id'=>155])}" title="推送"  class="btn btn-secondary btn-xs"><i class="icon-phonelink_erase"></i> 已断开 </a>
                                    
                                    <?php }  ?>
                                      
   
                                    </div>
                                </li><br>
                              
                                <li>
                                   Android更新推送
                                    <div class="material-switch float-right">
                                                         
                             <?php  $Android_Updated_switch  =  db('advert')->where('id = 154')->value('content');   

								if($Android_Updated_switch == '1'){?> 
                                    
                                                 <a href="{:url('Version/eject_no',['id'=>154])}" title="断开"  class="btn btn-primary btn-xs blink"><i class="icon-phonelink_ring"></i> 更新推送中</a>
                     
                                    <?php } else if($Android_Updated_switch == '0'){?> 
                                    
                                        
                                                 <a href="{:url('Version/eject_ok',['id'=>154])}" title="推送"  class="btn btn-secondary btn-xs"><i class="icon-phonelink_erase"></i> 已断开 </a>
                                    
                                    <?php } else { ?>
                                    
                                    
                                                 <a href="{:url('Version/eject_ok',['id'=>154])}" title="推送"  class="btn btn-secondary btn-xs"><i class="icon-phonelink_erase"></i> 已断开 </a>
                                    
                                    <?php }  ?>
                                                         

                                      
                                      
                                    </div>
                                </li>
                            </ul>
                        </div>
                          <br>
                          <h6>IOS下载地址：         <br>
                            <span style="font-size: 9px;color: #d1d8de;">{$app_ios_down}</span></h6>
                           <br> <h6>安卓APK下载地址：       <br>
                             <span style="font-size: 9px;color: #d1d8de;">{$app_android_down}</span></h6>
                           <br>
                          
                            <form class="form-material"  role="form" id="form1" method="post" action="{:url('Version/index')}">



                                    <h6>推送版本号</h6><br>
                            
                                    <div class="row clearfix">
                                        <div class="col-sm-6">
                                          <div class="form-group form-float">
                                                <div class="form-line focused ">
                                                    <input type="text" class="form-control"  value="{:advert('152')}" name="Ios_Updated_version" >
                                                  <label class="form-label">IOS Version</label>
                                                </div>
                                            </div>
                                          
                                        </div>
                 
                                        <div class="col-sm-6">
                                          
                                          
                                          <div class="form-group form-float">
                                                <div class="form-line focused ">
                                                    <input type="text" class="form-control"  value="{:advert('150')}" name="Android_Updated_version" >
                                                  <label class="form-label">Android Version</label>
                                                </div>
                                            </div>
                                          
                                        </div>

                                      
                                      
                                    </div>

  

                                <div class="form-group">
                                    <label for="exampleFormControlTextarea2">IOS 更新内容简介</label>
                                    <textarea class="form-control r-0"   name="Ios_Updated_content"  rows="3">{:advert('153')}</textarea>
                                </div>
                              
                              
                              

                                <div class="form-group">
                                    <label for="exampleFormControlTextarea2">Android 更新内容简介</label>
                                    <textarea class="form-control r-0"  name="Android_Updated_content"  rows="3">{:advert('151')}</textarea>
                                </div>
                              
                              
                                              <button type="submit" class="btn btn-primary">保存</button>
                            </form>
                        </div>
                    </div>
                </div>       
              

                
  
						  <div class="col-md-5">
                                  <hr>
                                  <h3>更新帮助</h3>
                                  <p>用户当前使用的版本低于推送的版本将会提示更新.</p>
                                  <p>注意：只有当推送状态为  <span class="btn btn-primary btn-xs blink"><i class="icon-phonelink_ring"></i> 更新推送中</span> 且对应的地址填写后客户端才会检测 .</p>
                            
                            
                            <br> 
                            
                                   对应的下载地址 在 【 仪表盘-设置 】 中编辑

                          
                                  <h4 class="mt-5">未完待续……</h4>
                                  <hr>
								
                                  <a class="btn btn-outline-primary btn-xs">Perfect Network Service</a>
                                
                              </div>
              
            </div>
      <!--      <nav class="pt-3" aria-label="Page navigation">
                <ul class="pagination">
                    <li class="page-item"><a class="page-link" href="#">Previous</a>
                    </li>
                    <li class="page-item"><a class="page-link" href="#">1</a>
                    </li>
                    <li class="page-item"><a class="page-link" href="#">2</a>
                    </li>
                    <li class="page-item"><a class="page-link" href="#">3</a>
                    </li>
                    <li class="page-item"><a class="page-link" href="#">Next</a>
                    </li>
                </ul>
            </nav>-->
        </div>
    </div>
  
</div>





{if($code==1)}
<div class="col-md-6" id="alert" style="position:fixed;right:0px;bottom:0px;  width: 350px">
  <div class="alert alert-success">
      <button type="button" class="close" data-dismiss="alert">
          <span aria-hidden="true">×</span>
          <span class="sr-only">Close</span>
      </button>

      <strong>恭喜!</strong> <?php echo input('msg');?>
  </div>
</div>
{/if}